package com.siae.exce;


import com.siae.utils.BizCode;
import lombok.Getter;

@Getter
public class BizException extends RuntimeException{
    private Integer code;
    private  String msg;

    public BizException(Integer code, String msg){
        super(msg);
        this.code = code;
        this.msg = msg;
    }

    public BizException(BizCode bizCode){
        super(bizCode.getMsg());
        this.code = bizCode.getCode();
        this.msg = bizCode.getMsg();
    }
}
